package com.meituan.pojo.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "dingdan")
public class Order {
    /**
     * 订单实体类
     */

    //订单id
    @Id
    private Integer oid;
    //用户ID
    private Integer uid;
    //商家ID
    private Integer sid;
    //商品ID
    private Integer gid;
    //商品数量
    private Integer gnum;
    //添加时间
    private Date otime;
    //订单状态
    private int state;
}
